# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=jondo
pkgver=00.20.001
pkgrel=1
pkgdesc='Redirects internet traffic trough a mix of proxy servers to hide the origin of the requests.'
groups=('blackarch' 'blackarch-proxy' 'blackarch-networking')
arch=('any')
license=('BSD')
url='https://anonymous-proxy-servers.net/'
depends=('java-environment')
source=("https://anonymous-proxy-servers.net/downloads/${pkgname}_linux.tar.bz2"
        "$pkgname"
        "$pkgname.1"
        'licence')
sha512sums=('cb42261b82072230442c55629ab39f56ff51cfbffafde075bf88e236b98ae17b701838a96b20301c76ca5a0629f9fb97ea997147a00f292c9ed5779d9569fb41'
            '1f76ac9dc3714125c701ff7da903d725f82339587f8d6f5c3ae66c3212b16e05dea9bae23f7a36a553184b3d93cae485d18f11c313fea370022aa90eff9df90e'
            'a0c0187eabc7eef9e406e96a8da75aaaa26a9c718d3a775e3903aa148a31fb88a95d5a61d425afe1d9016babce41866596859be052190fa76eaa68f82853ce91'
            'bb1af04400bc2d87c0d08bc29dad07450d5468096b43280941ba52dbbefe41b1dc7d0f552c5c146f5457a0b3830d169d6d378b8189e936187ebe50349beb9cf1')
install="$pkgname.install"

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 "$pkgname.1" "$pkgdir/usr/share/man/man1/jondo.1"
  install -Dm 644 licence "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  cd jondo_linux/

  install -Dm 644 JAP.jar "$pkgdir/usr/share/java/$pkgname/JAP.jar"
  install -Dm 644 desktop/jondo.desktop \
    "$pkgdir/usr/share/applications/jondo.desktop"
  install -Dm 644 desktop/jondo.menu "$pkgdir/usr/share/menu/$pkgname.menu"
  install -Dm 644 icons/jondo-48.png "$pkgdir/usr/share/pixmaps/jondo.png"
}

